import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 按钮权限列表
    permissionBtn: [],
    collapseSideMenu: false,
    access_token: '',
    refresh_token: '',
    author_token: ''
  },
  mutations: {
    setPermissionBtnList(state, list) {
      state.permissionBtn = list
    },
    setCollapseSideMenu(state, payload) {
      state.collapseSideMenu = payload
    }
  },
  actions: {},
  getters: {},
  modules: {}
})
